package com.jiukuaidao.library.config.db;

import io.realm.Realm;
import io.realm.RealmModel;
import io.realm.RealmObject;
import io.realm.RealmResults;

/**
 * Author : BinarySatan
 * Date : 2016/6/15
 * Description :
 */
public class RealmEntity<T extends RealmObject> {

    private Realm mRealm;
    private RealmModel mRealmModel;
    private RealmResults<T> mRealmResults;

    private RealmEntity() {
    }

    public static RealmEntity getInstance() {
        return new RealmEntity();
    }

    public Realm getRealm() {
        return mRealm;
    }

    public RealmEntity setRealm(Realm mRealm) {
        this.mRealm = mRealm;
        return this;
    }

    public RealmModel getRealmModel() {
        return mRealmModel;
    }

    public RealmResults<T> getRealmResults() {
        return mRealmResults;
    }

    public RealmEntity setRealmModel(RealmModel realmModel) {
        mRealmModel = realmModel;
        return this;
    }

    public RealmEntity setRealmModelResults(RealmResults<T> realmModelResults) {
        mRealmResults = realmModelResults;
        return this;
    }

}
